all: ex1_server sc dummyTest tester

clean:
	rm ex1_server mallocStackServer.o sc mallocStackClient.o dequeue.o my_malloc.o dummyTest tester stackTester.o dummyTest.o

ex1_server: mallocStackServer.o dequeue.o my_malloc.o
	g++ -o ex1_server mallocStackServer.o dequeue.o my_malloc.o -lpthread

mallocStackServer.o: mallocStackServer.cpp
	g++ -Wall -lpthread -c mallocStackServer.cpp

dequeue.o:
	g++ -Wall -lpthread -c Libs/dequeue.cpp

my_malloc.o:
	g++ -Wall -lpthread -c Libs/my_malloc.cpp

sc: mallocStackClient.o
	g++ -o sc mallocStackClient.o -lpthread

mallocStackClient.o: mallocStackClient.cpp
	g++ -Wall -lpthread -c mallocStackClient.cpp
tester: stackTester.o
	g++ -o tester stackTester.o

stackTester.o: stackTester.cpp
	g++ -Wall -c stackTester.cpp

dummyTest: dummyTest.o
	g++ -o dummyTest dummyTest.o -lpthread

dummyTest.o: dummyTest.cpp
	g++ -Wall -c dummyTest.cpp

